package ooday03homework;

public class Fish extends Animal implements Swim{
    /*
    Fish() {

    }

    Fish(String name, int age, String color) {
        super(name, age, color);
    }


    void eat() {
        System.out.println("小鱼"+name+"在吃东西"+"颜色是"+color+"年龄是"+age);
    }

    public void swim() {
        System.out.println("小鱼"+name+"在游泳");
    }

     */
    Fish() {

    }

    Fish(String name, int age, String color) {
        super(name,age,color);
    }

    void eat() {
        System.out.println(name+"小鱼年龄是"+age+"毛发颜色是"+color);
    }

    public void swim() {
        System.out.println(name+"小鱼在游泳");
    }
}
